-- GENERATED SPELL FOR [Azurebeak] --


function spell0_21005(pUnit, Event) --@Screech,n/a--
pUnit:FullCastSpellOnTarget(31273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21005', 8331, 1)
end

function Sorts_21005(pUnit, Event)
local choix_sorts_21005 = math.random(0, 0)
if choix_sorts_21005 == 0 then
pUnit:RegisterEvent('spell0_21005', 1, 1)
end
end

function mob21005_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21005', math.random(1500, 3000), 1)
end

function mob21005_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21005_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21005_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21005, 1, 'mob21005_Action')
RegisterUnitEvent(21005, 2, 'mob21005_Leave')
RegisterUnitEvent(21005, 3, 'mob21005_Kill')
RegisterUnitEvent(21005, 4, 'mob21005_Die')
